package com.hygj.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 用户
 * 
 * @author 用户
 *
 */
public class User {

	private Integer uid;
	private String username;// 用户名称
	private String password;// 用户名密码
	private String userDescription;// 用户备注
	private Integer state;// 状态
	private Integer telephones;// 电话号码
	private List<Role> roles = new ArrayList<Role>();// 一个用户可以有多个角色

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserDescription() {
		return userDescription;
	}

	public void setUserDescription(String userDescription) {
		this.userDescription = userDescription;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getTelephones() {
		return telephones;
	}

	public void setTelephones(Integer telephones) {
		this.telephones = telephones;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}

	@Override
	public String toString() {
		return "User{" +
				"uid=" + uid +
				", username='" + username + '\'' +
				", password='" + password + '\'' +
				", userDescription='" + userDescription + '\'' +
				", state=" + state +
				", telephones=" + telephones +
				", roles=" + roles +
				'}';
	}
}
